package com.usian.user.feign;

import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;


@FeignClient("leadnews-wemedia")
@RequestMapping("/api/v1/user")
public interface WmUserFeign {

    @RequestMapping("save")
    ResponseResult save(@RequestBody WmUser wmUser);


    @RequestMapping("findByName/{name}")
    WmUser findByName(@PathVariable String name);
}
